import { http, fysqIp} from '../../Api/http'

/**
 * @description: 财务接口
 * @author: xiaoxujs
 */
//费用申请 -- 详情
export const getAccOverallParticular= (data) => {
    const url = fysqIp + '/acc-overall/particular'
    return http(url, 'get', data)
}
//代办事项
export const postAccOverallSelectedBacklog = (data) => {
    const url = fysqIp + "/acc-overall/selectedBacklog"
    return http(url, 'post', data)
}

//我的审批
export const postAccOverallISendOutApprove= (data) => {
    const url = fysqIp + '/acc-overall/iSendOutApprove'
    return http(url, 'post', data)
}
//撤销费用申请
export const getAccOverallRevocation= (data) => {
    const url = fysqIp + '/acc-overall/revocation'
    return http(url, 'get', data)
}

//待办事项审批
export const postAccOverallApprove = (data) => {
    const url = fysqIp + '/acc-overall/approve'
    return http(url, 'post', data)
}
//代办事项 -- 挂起
export const getAccOverallSuOrAc = (data) => {
    const url = fysqIp + '/acc-overall/suOrAc'
    return http(url, 'get', data)
}

//出差费用新增
export const putSccEvectionAddEvection= (data) => {
    const url = fysqIp + '/acc-evection/add/evection'
    return http(url, 'put', data)
}
//佣金费用新增
export const putAccBrokerageAddBrokerage= (data) => {
    const url = fysqIp + '/acc-brokerage/add/brokerage'
    return http(url, 'put', data)
}
//招待费用新增
export const putAccServeAddServe= (data) => {
    const url = fysqIp + '/acc-serve/add/serve'
    return http(url, 'put', data)
}
//推广费用新增
export const putAccAdvertisingAddAdvertising= (data) => {
    const url = fysqIp + '/acc-advertising/add/advertising'
    return http(url, 'put', data)
}
//办公费用新增
export const putAccWorkAddWork= (data) => {
    const url = fysqIp + '/acc-work/add/work'
    return http(url, 'put', data)
}
//运输费用新增
export const putAccCarriageAddCarriage= (data) => {
    const url = fysqIp + '/acc-carriage/add/carriage'
    return http(url, 'put', data)
}
//售后费用新增
export const putAccSaleAddSale= (data) => {
    const url = fysqIp + '/acc-sale/add/sale'
    return http(url, 'put', data)
}
//标书费用新增
export const putAccBidingAddBiding= (data) => {
    const url = fysqIp + '/acc-biding/add/biding'
    return http(url, 'put', data)
}
//服务费用新增
export const putAccSupportAddSupport= (data) => {
    const url = fysqIp + '/acc-support/add/support'
    return http(url, 'put', data)
}
//汽车费用控制器
export const putAccPassageAddPassage= (data) => {
    const url = fysqIp + '/acc-passage/add/passage'
    return http(url, 'put', data)
}
//水电油费用控制器
export const putAccElectricityAddElectricity = (data) => {
    const url = fysqIp + '/acc-electricity/add/electricity'
    return http(url, 'put', data)
}
//其他费用控制器
export const putAccElseAddElse = (data) => {
    const url = fysqIp + '/acc-else/add/else'
    return http(url, 'put', data)
}
//申请回显
export const getAccOverallBasic = (data) => {
    const url = fysqIp + '/acc-overall/basic'
    return http(url, 'get', data)
}





//审批规则 -- 列表
export const postAccRuleFindRule= (data) => {
    const url = fysqIp + '/acc-rule/find/rule'
    return http(url, 'post', data)
}
//审批规则开启
export const getAccRuleStartRule = (data) => {
    const url = fysqIp + '/acc-rule/start/rule'
    return http(url, 'get', data)
}
//审批规则新增
export const putAccRuleAddRule = (data) => {
    const url = fysqIp + '/acc-rule/add/rule'
    return http(url, 'put', data)
}
//审批规则删除
export const getAccRuleDeleteRule = (data) => {
    const url = fysqIp + '/acc-rule/delete/rule'
    return http(url, 'get', data)
}

//我发出的反馈列表
export const postAccFeedbackInfoFindOneself = (data) => {
    const url = fysqIp + '/acc-feedback-info/findOneself'
    return http(url, 'post', data)
}
//填写反馈
export const putAccFeedbackInfoInsertFeedbackInfo = (data) => {
    const url = fysqIp + '/acc-feedback-info/insertFeedbackInfo'
    return http(url, 'put', data)
}
//反馈作废
export const deleteAccFeedbackInfoDeleteFeedbackInfo = (data) => {
    const url = fysqIp + '/acc-feedback-info/deleteFeedbackInfo'
    return http(url, 'delete', data)
}
//反馈回显
export const getAccFeedbackInfoUpdateShow = (data) => {
    const url = fysqIp + '/acc-feedback-info/updateShow'
    return http(url, 'get', data)
}
//反馈编辑
export const postAccFeedbackInfoUpdateFeedbackInfo = (data) => {
    const url = fysqIp + '/acc-feedback-info/updateFeedbackInfo'
    return http(url, 'post', data)
}
//反馈详情
export const getAccFeedbackInfoFeedbackInfoDetail = (data) => {
    const url = fysqIp + '/acc-feedback-info/feedbackInfoDetail'
    return http(url, 'get', data)
}
//待确认反馈列表
export const postAccFeedbackInfoFindAudit = (data) => {
    const url = fysqIp + '/acc-feedback-info/findAudit'
    return http(url, 'post', data)
}
//执行反馈确认按钮
export const postAccFeedbackInfoExecuteFeedbackInfo = (data) => {
    const url = fysqIp + '/acc-feedback-info/executeFeedbackInfo'
    return http(url, 'post', data)
}
//材料交易单 -- 出库列表
export const postAccAmoebaOutboundFindCk = (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/find/ck'
    return http(url, 'post', data)
}
//材料交易单 -- 出库材料新增
export const putAccAmoebaOutboundInsertAmoebaOutbound = (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/insertAmoebaOutbound'
    return http(url, 'put', data)
}
//材料交易单 -- 出库材料修改
export const postAccAmoebaOutboundUpdateAmoebaOutboundDTO = (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/UpdateAmoebaOutboundDTO'
    return http(url, 'post', data)
}
//材料交易单 -- 出库材料回显
export const getAccAmoebaOutboundUpdateShow= (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/updateShow'
    return http(url, 'get', data)
}
//材料交易单 -- 出库材料撤销
export const deleteAccAmoebaOutboundDeleteAmoebaOutbound= (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/deleteAmoebaOutbound'
    return http(url, 'delete', data)
}
//材料交易单 -- 出库材料 --领用材料列表 
export const postAccAmoebaOutboundFindLy= (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/find/ly'
    return http(url, 'post', data)
}
//材料交易单 -- 出库材料 --领用材料-- 确认 驳回 
export const getAccAmoebaOutboundAffirm= (data) => {
    const url = fysqIp + '/acc-amoeba-outbound/affirm'
    return http(url, 'get', data)
}
//内部交易 -- 产品交易单列表
export const postAccAmoebaTradingFindSc= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/find/sc'
    return http(url, 'post', data)
}
//内部交易 -- 产品交易单列表--新增
export const putAccAmoebaTradingInsertAmoebaTrading= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/insertAmoebaTrading'
    return http(url, 'put', data)
}
//内部交易 -- 产品交易单列表 -- 修改
export const postAccAmoebaTradingUpdateAmoebaTrading= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/updateAmoebaTrading'
    return http(url, 'post', data)
}
//内部交易 -- 产品交易单列表 -- 撤回
export const DeleteAccAmoebaTradingDeleteAmoebaTrading= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/deleteAmoebaTrading'
    return http(url, 'delete', data)
}
//内部交易 -- 产品交易单列表 -- 回显
export const getAccAmoebaTradingUpdateShow= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/updateShow'
    return http(url, 'get', data)
}
//内部交易 -- 产品交易单列表 -- 确认列表
export const postAccAmoebaTradingFindXs= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/find/xs'
    return http(url, 'post', data)
}
//内部交易 -- 产品交易单列表 -- 确认列表 -- (购买 - 驳回)
export const getAccAmoebaTradingAffirm= (data) => {
    const url = fysqIp + '/acc-amoeba-trading/affirm'
    return http(url, 'get', data)
}
//内部交易 --  人工成本单列表
export const postAccAmoebaCostFindAmoebaCost= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/findAmoebaCost'
    return http(url, 'post', data)
}
//内部交易 --  人工成本单列表 -- 新增
export const putAccAmoebaCostInsertAccAmoebaCost= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/insertAccAmoebaCost'
    return http(url, 'put', data)
}
//内部交易 --  人工成本单列表 -- 编辑
export const postAccAmoebaCostUpdateAccAmoebaCost= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/updateAccAmoebaCost'
    return http(url, 'post', data)
}
//内部交易 --  人工成本单列表 -- 回显
export const getAccAmoebaCostUpdateShow= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/updateShow'
    return http(url, 'get', data)
}
//内部交易 --  人工成本单列表 -- 删除
export const deleteAccAmoebaCostDeleteAmoebaCost= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/deleteAmoebaCost'
    return http(url, 'delete', data)
}
//内部交易 --  人工成本单列表 -- 明细列表
export const postAccAmoebaCostFindAmoebaCostDetail= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/findAmoebaCostDetail'
    return http(url, 'post', data)
}
//内部交易 --  人工成本单列表 -- 确认
export const getAccAmoebaCostAffirm= (data) => {
    const url = fysqIp + '/acc-amoeba-cost/affirm'
    return http(url, 'get', data)
}
//内部交易 --  机会成本分配单列表
export const postAccAmoebaChanceFindAmoebaChance= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/findAmoebaChance'
    return http(url, 'post', data)
}
//内部交易 --  机会成本分配单列表 -- 新增
export const putAccAmoebaChanceInsertAmoebaChance= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/insertAmoebaChance'
    return http(url, 'put', data)
}
//内部交易 --  机会成本分配单列表 -- 编辑
export const postAccAmoebaChanceUpdateAmoebaChance= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/updateAmoebaChance'
    return http(url, 'post', data)
}
//内部交易 --  机会成本分配单列表 -- 回显
export const getAccAmoebaChanceUpdateShow= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/updateShow'
    return http(url, 'get', data)
}
//内部交易 --  机会成本分配单列表 -- 删除
export const deleteAccAmoebaChanceDeleteAmoebaChance= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/deleteAmoebaChance'
    return http(url, 'delete', data)
}
//内部交易 --  机会成本分配单列表 -- 确认列表
export const postAccAmoebaChanceFindAmoebaChanceQr= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/findAmoebaChance/qr'
    return http(url, 'post', data)
}
//内部交易 --  机会成本分配单列表 -- 确认列表 -- 确认
export const getAccAmoebaChanceAffirm= (data) => {
    const url = fysqIp + '/acc-amoeba-chance/affirm'
    return http(url, 'get', data)
}